package com.etc.user.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.etc.entity.User;
@Repository(value = "usersMapper")
public interface UsersMapper {
	
	/**
	 * 增加用户
	 * @param user
	 * @return
	 */
	int insertSelective(User user);
	
	
	
	/**
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
    User findWithLoginAndPassword(@Param("username")String username,@Param("password")String password);
	/**
	 * 根据用户名判断用户是否存在
	 * @param username
	 * @return
	 */
    User selectUserByUserName(String username);	

}
